<template>
    <el-date-picker v-model="searchForm[data['prop']]" popper-class="eq-date-range-popper" type="month" placeholder="请选择日期" :valueFormat="dateFormat"/>
</template>

<script setup>
import { ref } from 'vue';

const props = defineProps({
    data: {
        type: Object,
        default: () => {}
    }
});

const searchForm = defineModel('searchForm');

const dateFormat = ref('YYYY-MM');
</script>

<style lang="scss">
@import url('./DateMonthPicker.scss');
</style>